import instance from "@/utils/axios-instance.js"

/**
 * 获取热门榜单新闻列表
 * @param {*} params 
 * @returns 
 */
export function getHotRankNews (params) {
    return instance.get("/news/list", {params: params})
}


/**
 * 手动执行刷新新闻
 * @param {*} data 
 * @returns 
 */
export function updateNewsBySelf (data) {
    return instance.post("/news/list", data=data)
}